//function to check to see if start date is later than end date
//dates in dd/mm/yyyy or dd/mm/yy format
function checkStartEndDates(start, end) {

	var incorrectDates = true;
	var startDataArray = start.split('/');
	var endDataArray = end.split('/');
	// check year
	if (startDataArray[2] < endDataArray[2]) {
		// start year less than end year dates valid
		incorrectDates = false;
	} else if (startDataArray[2] > endDataArray[2]) {
		// start year greater than end year dates invalid
		incorrectDates = true;
	} else if (startDataArray[2] = endDataArray[2]) {
		// start year and end year equal check month

		if (startDataArray[1] < endDataArray[1]) {
			// start month less than end month dates valid
			incorrectDates = false;
		} else if (startDataArray[1] > endDataArray[1]) {
			// start month greater than end month dates invalid
			incorrectDates = true;
		} else if (startDataArray[1] = endDataArray[1]) {
			// start month and end month equal check day
			if (startDataArray[0] < endDataArray[0]) {
				incorrectDates = false;
				// start day less than end day dates valid
			} else if (startDataArray[0] > endDataArray[0]) {
				// start day greater than end day dates invalid
				incorrectDates = true;
			} else if (startDataArray[0] = endDataArray[0]) {
				// start and end day equal dates valid - start and end on same
				// day valid
				incorrectDates = false;
			}
		}

	}

	return incorrectDates;
}